package com.qixin.modules.eaApplication.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: 出差申请单
 * @Author: qixin-boot
 * @Date:   2021-07-02
 * @Version: V1.0
 */
@ApiModel(value="ea_business_apply对象", description="出差申请单")
@Data
@TableName("ea_business_apply")
public class EaBusinessApply implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    private transient java.lang.String createByName;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    private transient java.lang.String updateByName;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
    private transient java.lang.String sysOrgCodeName;
	/**单据编号*/
	@Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private java.lang.String billNo;
	/**单据日期*/
	@Excel(name = "单据日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "单据日期")
    private java.util.Date billDate;
	/**单据状态*/
	@Excel(name = "单据状态", width = 15, dicCode = "BillState")
    @Dict(dicCode = "BillState")
    @ApiModelProperty(value = "单据状态")
    private java.lang.Integer state;
    private transient java.lang.String statusName;
	/**财务部门ID*/
	@Excel(name = "财务部门ID", width = 15)
    @ApiModelProperty(value = "财务部门ID")
    private java.lang.String financeDeptId;
    private transient java.lang.String financeDeptIdName;
	/**申请单位ID*/
	@Excel(name = "申请单位ID", width = 15)
    @ApiModelProperty(value = "申请单位ID")
    private java.lang.String companyCodeId;
    private transient java.lang.String companyCodeIdName;
	/**费用承担单位*/
	@Excel(name = "费用承担单位", width = 15)
    @ApiModelProperty(value = "费用承担单位")
    private java.lang.String costCompCodeId;
    private transient java.lang.String costCompCodeIdName;
	/**申请人ID*/
	@Excel(name = "申请人ID", width = 15)
    @ApiModelProperty(value = "申请人ID")
    private java.lang.String personId;
    private transient java.lang.String personIdName;
	/**申请部门*/
	@Excel(name = "申请部门", width = 15)
    @ApiModelProperty(value = "申请部门")
    private java.lang.String deptId;
    private transient java.lang.String deptIdName;
	/**费用承担部门*/
	@Excel(name = "费用承担部门", width = 15)
    @ApiModelProperty(value = "费用承担部门")
    private java.lang.String costDept;

    /**费用承担部门名称*/
    @Excel(name = "费用承担部门名称", width = 15)
    @ApiModelProperty(value = "费用承担部门名称")
    private java.lang.String costDeptName;
	/**出差类型*/
	@Excel(name = "出差类型", width = 15)
    @ApiModelProperty(value = "出差类型")
    private java.lang.Integer type;
    private transient java.lang.String typeName;
	/**开始日期*/
	@Excel(name = "开始日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "开始日期")
    private java.util.Date startDate;
	/**结束日期*/
	@Excel(name = "结束日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "结束日期")
    private java.util.Date endDate;
	/**申请金额*/
	@Excel(name = "申请金额", width = 15)
    @ApiModelProperty(value = "申请金额")
    private java.math.BigDecimal applyMoney;
	/**已用费用*/
	@Excel(name = "已用费用", width = 15)
    @ApiModelProperty(value = "已用费用")
    private java.math.BigDecimal hasCost;
	/**余额*/
	@Excel(name = "余额", width = 15)
    @ApiModelProperty(value = "余额")
    private java.math.BigDecimal balance;
	/**组织本币*/
	@Excel(name = "组织本币", width = 15, dicCode = "currency")
    @Dict(dicCode = "currency")
    @ApiModelProperty(value = "组织本币")
    private java.lang.Integer currencyId;
	/**目的地*/
	@Excel(name = "目的地", width = 15)
    @ApiModelProperty(value = "目的地")
    private java.lang.String region;
    private transient java.lang.String regionName;
	/**商旅平台*/
	@Excel(name = "商旅平台", width = 15)
    @ApiModelProperty(value = "商旅平台")
    private java.lang.String businessTraveltYpe;
	/**是否公司配车*/
	@Excel(name = "是否公司配车", width = 15)
    @ApiModelProperty(value = "是否公司配车")
    private Boolean ifCompanyCar;
    private transient java.lang.String ifCompanyCarName;
	/**车牌号*/
	@Excel(name = "车牌号", width = 15)
    @ApiModelProperty(value = "车牌号")
    private java.lang.String plateNumber;
	/**司机*/
	@Excel(name = "司机", width = 15)
    @ApiModelProperty(value = "司机")
    private java.lang.String driver;
    private transient java.lang.String driverName;
	/**事由*/
	@Excel(name = "事由", width = 15)
    @ApiModelProperty(value = "事由")
    private java.lang.String explainStr;
	/**项目ID*/
	@Excel(name = "项目ID", width = 15)
    @ApiModelProperty(value = "项目ID")
    private java.lang.String projectId;
	/**费用项目*/
	@Excel(name = "费用项目", width = 15)
    @ApiModelProperty(value = "费用项目")
    private java.lang.String indexId;
    private transient java.lang.String indexIdName;
	/**交通工具*/
	@Excel(name = "交通工具", width = 15, dicCode = "	ea_vehicle_dict")
    @Dict(dicCode = "ea_vehicle_dict")
    @ApiModelProperty(value = "交通工具")
    private java.lang.String trafficTools;
    private transient java.lang.String trafficToolsName;
    /**附件*/
    @Excel(name = "附件", width = 500)
    @ApiModelProperty(value = "附件")
    private java.lang.String attch;
    /**图片*/
    @Excel(name = "图片", width = 500)
    @ApiModelProperty(value = "图片")
    private java.lang.String picture;

    //审批人id
    private transient String auditManId;
    //审批人
    private transient String auditMan;
    //提交类型:保存:add,提交:send
    private transient String saveType;

    /**是否已变更:0否,1是*/
    @Excel(name = "是否已变更", width = 15)
    @ApiModelProperty(value = "是否已变更:0否,1是")
    private Integer ifChanged;

    // update-begin-Autor: Wengmf date: 2022-01-27 11:42 for: 增加流程实例Id,前端查审批记录
    /**流程实例id*/
    @Excel(name = "流程实例id", width = 15)
    @ApiModelProperty(value = "流程实例id")
    private String procInstId;
    // update-end-Autor: Wengmf date: 2022-01-27 11:42 for: 增加流程实例Id，前端查审批记录

    // update-begin-Autor: Wengmf date: 2022-02-08 11:42 for: 增加单据类型,差旅费报销单Id,原申请单id,原申请单编号
    // 单据类型(0,申请,1,变更)
    @ApiModelProperty(value = "单据类型(0,申请,1,变更)")
    private java.lang.Integer billType;

    @ApiModelProperty(value = "差旅费报销单Id")
    private String  eaTravelId;

    // 业务逻辑操作
    @ApiModelProperty(value = "原申请单id")
    private String  parentId;

    // 辅助业务展示
    @ApiModelProperty(value = "原申请单编号")
    private String  oldBillNo;
    // update-begin-Autor: Wengmf date: 2022-02-08 11:42 for: 增加单据类型,差旅费报销单Id,原申请单编号,原申请单id

}
